package com.zrf.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zrf.gulimall.common.database.utils.PageUtils;
import com.zrf.gulimall.ware.entity.PurchaseEntity;
import com.zrf.gulimall.ware.vo.MergeVo;
import com.zrf.gulimall.ware.vo.PurchaseFinishVo;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author zrf
 * @email 120662332@qq.com
 * @date 2021-01-23 17:34:49
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

	/**
	 * 查询未领取的采购单
	 * @param params 分页参数
	 * @return 分页数据
	 */
	PageUtils queryPageUnReceive(Map<String, Object> params);

	/**
	 * 领取采购单
	 * @param purchaseIdList 采购单id
	 */
	void receive(List<Long> purchaseIdList);

	/**
	 * 合并采购需求
	 * @param mergeVo 采购需求
	 */
	void mergePurchase(MergeVo mergeVo);

	/**
	 * 完成采购
	 * @param purchaseFinishVos 请求数据
	 */
	void done(PurchaseFinishVo purchaseFinishVos);
}

